import { Injectable } from '@angular/core';

import { Observable } from 'rxjs';

import { HttpRequestService } from './http-request.service';

/**
 * This service is intend to load the config info from json file in assets/config directory.
 */
@Injectable()
export class ConfigService {
    constructor(private httpRequestService: HttpRequestService) { }

    loadLocalGeneralConfig(): Observable<any> {
        return this.httpRequestService.getWithoutBaseUrl<any>('assets/config/general.config.json');
    }
}